export default {
    namespaced: true,
    state: {
        textcontent: [],
        view:'all'
    },
    mutations: {
        setcontent(state, payload) {
            console.log(111);
            let newtask = {
                title: payload,
                states:false
            }
            state.textcontent.push(newtask)
        },
        clearcontent(state) {
            state.textcontent=state.textcontent.filter((item)=>!item.states)
        },
        setShowList(state, payload) {
            state.view=payload
           }
        
    },
    actions: {},
 }